import { Button } from 'antd';
import MyModal from '../../../hooks/modal/v4/useMyModal';
import MyForm from './MyForm';

export default function MyModalTestV4() {

  const okTrigger = () => {
    console.log("MyModalTestV4 okTrigger");
  }

  const showModal = () => {
    MyModal({
      title: "Test",
      onOk: okTrigger,
      children: MyForm
    });
  }

  return (
    <div>
      <Button type="primary" onClick={showModal}>点我弹框--V4</Button>
    </div>
  )
}
